#pragma once
#include <glad/glad.h>

struct Mesh {
    GLuint vao=0,vbo=0,ebo=0;
    GLsizei indexCount=0;
    void draw() const { glBindVertexArray(vao); glDrawElements(GL_TRIANGLES,indexCount,GL_UNSIGNED_INT,0); }
    static Mesh Cube();
    static Mesh Plane();
};